9.0
HIGH CVSS 2.0
CVE-2008-5416
Microsoft SQL Server Heap-based Buffer Overflow Vulnerability
Description

Heap-based buffer overflow in Microsoft SQL Server 2000 SP4, 8.00.2050, 8.00.2039, and earlier; SQL Server 2000 Desktop Engine (MSDE 2000) SP4; SQL Server 2005 SP2 and 9.00.1399.06; SQL Server 2000 Desktop Engine (WMSDE) on Windows Server 2003 SP1 and SP2; and Windows Internal Database (WYukon) SP2 allows remote authenticated users to cause a denial of service (access violation exception) or execute arbitrary code by calling the sp_replwritetovarbin extended stored procedure with a set of invalid parameters that trigger memory overwrite, aka "SQL Server sp_replwritetovarbin Limited Memory Overwrite Vulnerability."

INFO

Published Date :

Dec. 10, 2008, 2 p.m.

Last Modified :

April 9, 2025, 12:30 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2008-5416 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Microsoft sql_server
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 HIGH [email protected]
Solution
The Microsoft SQL Server installation is affected by a heap-based buffer overflow vulnerability.
  • Apply the appropriate patches released by Microsoft for SQL Server 2000 and 2005.
  • Consider a reboot to ensure the patch fully resolves the vulnerability.
Public PoC/Exploit Available at Github

CVE-2008-5416 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2008-5416.

URL Resource
http://archives.neohapsis.com/archives/fulldisclosure/2008-12/0304.html
http://osvdb.org/50917
http://secunia.com/advisories/33034 Vendor Advisory
http://securityreason.com/securityalert/4706
http://securitytracker.com/id?1021363
http://securitytracker.com/id?1021490
http://support.avaya.com/elmodocs2/security/ASA-2009-055.htm
http://www.kb.cert.org/vuls/id/696644 US Government Resource
http://www.microsoft.com/technet/security/advisory/961040.mspx
http://www.sec-consult.com/files/20081209_mssql-2000-sp_replwritetovarbin_memwrite.txt Exploit
http://www.securityfocus.com/archive/1/499042/100/0/threaded
http://www.securityfocus.com/archive/1/499085/100/0/threaded
http://www.securityfocus.com/archive/1/516397/100/0/threaded
http://www.securityfocus.com/bid/32710 Exploit
http://www.us-cert.gov/cas/techalerts/TA09-041A.html US Government Resource
http://www.vmware.com/security/advisories/VMSA-2011-0003.html
http://www.vmware.com/support/vsphere4/doc/vsp_vc41_u1_rel_notes.html
http://www.vupen.com/english/advisories/2008/3380
https://docs.microsoft.com/en-us/security-updates/securitybulletins/2009/ms09-004
https://exchange.xforce.ibmcloud.com/vulnerabilities/47182
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6217
https://www.exploit-db.com/exploits/7501
http://archives.neohapsis.com/archives/fulldisclosure/2008-12/0304.html
http://osvdb.org/50917
http://secunia.com/advisories/33034 Vendor Advisory
http://securityreason.com/securityalert/4706
http://securitytracker.com/id?1021363
http://securitytracker.com/id?1021490
http://support.avaya.com/elmodocs2/security/ASA-2009-055.htm
http://www.kb.cert.org/vuls/id/696644 US Government Resource
http://www.microsoft.com/technet/security/advisory/961040.mspx
http://www.sec-consult.com/files/20081209_mssql-2000-sp_replwritetovarbin_memwrite.txt Exploit
http://www.securityfocus.com/archive/1/499042/100/0/threaded
http://www.securityfocus.com/archive/1/499085/100/0/threaded
http://www.securityfocus.com/archive/1/516397/100/0/threaded
http://www.securityfocus.com/bid/32710 Exploit
http://www.us-cert.gov/cas/techalerts/TA09-041A.html US Government Resource
http://www.vmware.com/security/advisories/VMSA-2011-0003.html
http://www.vmware.com/support/vsphere4/doc/vsp_vc41_u1_rel_notes.html
http://www.vupen.com/english/advisories/2008/3380
https://docs.microsoft.com/en-us/security-updates/securitybulletins/2009/ms09-004
https://exchange.xforce.ibmcloud.com/vulnerabilities/47182
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6217
https://www.exploit-db.com/exploits/7501
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2008-5416 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Microsoft SQL Server sp_replwritetovarbin Memory Corruption via SQL Injection

Updated: 4 years, 10 months ago
3 stars 2 fork 2 watcher
Born at : May 3, 2017, 7:31 p.m. This repo has been linked 1 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2008-5416 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2008-5416 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference http://archives.neohapsis.com/archives/fulldisclosure/2008-12/0304.html
    Added Reference http://osvdb.org/50917
    Added Reference http://secunia.com/advisories/33034
    Added Reference http://securityreason.com/securityalert/4706
    Added Reference http://securitytracker.com/id?1021363
    Added Reference http://securitytracker.com/id?1021490
    Added Reference http://support.avaya.com/elmodocs2/security/ASA-2009-055.htm
    Added Reference http://www.kb.cert.org/vuls/id/696644
    Added Reference http://www.microsoft.com/technet/security/advisory/961040.mspx
    Added Reference http://www.sec-consult.com/files/20081209_mssql-2000-sp_replwritetovarbin_memwrite.txt
    Added Reference http://www.securityfocus.com/archive/1/499042/100/0/threaded
    Added Reference http://www.securityfocus.com/archive/1/499085/100/0/threaded
    Added Reference http://www.securityfocus.com/archive/1/516397/100/0/threaded
    Added Reference http://www.securityfocus.com/bid/32710
    Added Reference http://www.us-cert.gov/cas/techalerts/TA09-041A.html
    Added Reference http://www.vmware.com/security/advisories/VMSA-2011-0003.html
    Added Reference http://www.vmware.com/support/vsphere4/doc/vsp_vc41_u1_rel_notes.html
    Added Reference http://www.vupen.com/english/advisories/2008/3380
    Added Reference https://docs.microsoft.com/en-us/security-updates/securitybulletins/2009/ms09-004
    Added Reference https://exchange.xforce.ibmcloud.com/vulnerabilities/47182
    Added Reference https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6217
    Added Reference https://www.exploit-db.com/exploits/7501
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Oct. 12, 2018

    Action Type Old Value New Value
    Removed Reference http://www.microsoft.com/technet/security/Bulletin/MS09-004.mspx [No Types Assigned]
    Added Reference https://docs.microsoft.com/en-us/security-updates/securitybulletins/2009/ms09-004 [No Types Assigned]
  • CVE Modified by [email protected]

    Oct. 11, 2018

    Action Type Old Value New Value
    Removed Reference http://www.securityfocus.com/archive/1/archive/1/499042/100/0/threaded [Exploit]
    Removed Reference http://www.securityfocus.com/archive/1/archive/1/499085/100/0/threaded [No Types Assigned]
    Removed Reference http://www.securityfocus.com/archive/1/archive/1/516397/100/0/threaded [No Types Assigned]
    Added Reference http://www.securityfocus.com/archive/1/516397/100/0/threaded [No Types Assigned]
    Added Reference http://www.securityfocus.com/archive/1/499085/100/0/threaded [No Types Assigned]
    Added Reference http://www.securityfocus.com/archive/1/499042/100/0/threaded [No Types Assigned]
  • CVE Modified by [email protected]

    Sep. 29, 2017

    Action Type Old Value New Value
    Removed Reference http://oval.mitre.org/repository/data/getDef?id=oval:org.mitre.oval:def:6217 [No Types Assigned]
    Removed Reference http://www.milw0rm.com/exploits/7501 [No Types Assigned]
    Added Reference https://www.exploit-db.com/exploits/7501 [No Types Assigned]
    Added Reference https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6217 [No Types Assigned]
  • CVE Modified by [email protected]

    Aug. 08, 2017

    Action Type Old Value New Value
    Removed Reference http://xforce.iss.net/xforce/xfdb/47182 [No Types Assigned]
    Added Reference https://exchange.xforce.ibmcloud.com/vulnerabilities/47182 [No Types Assigned]
  • Initial Analysis by [email protected]

    Dec. 11, 2008

    Action Type Old Value New Value
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 9
Access Vector
Access Complexity
Authentication
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

89.07 }} 2.21%

score

0.99507

percentile